<html>
 <head>
  <link href="./leetcode-problem.css" rel="stylesheet" type="text/css">
 </head>
 <body>
  <div class="question_difficulty">
   难度：Easy
  </div>
  <div>
   <h1 class="question_title">
    88. Merge Sorted Array
   </h1>
   <p>
    Given two sorted integer arrays
    <em>
     nums1
    </em>
    and
    <em>
     nums2
    </em>
    , merge
    <em>
     nums2
    </em>
    into
    <em>
     nums1
    </em>
    as one sorted array.
   </p>
   <p>
    <strong>
     Note:
    </strong>
   </p>
   <ul>
    <li>
     The number of elements initialized in
     <em>
      nums1
     </em>
     and
     <em>
      nums2
     </em>
     are
     <em>
      m
     </em>
     and
     <em>
      n
     </em>
     respectively.
    </li>
    <li>
     You may assume that
     <em>
      nums1
     </em>
     has enough space (size that is greater or equal to
     <em>
      m
     </em>
     +
     <em>
      n
     </em>
     ) to hold additional elements from
     <em>
      nums2
     </em>
     .
    </li>
   </ul>
   <p>
    <strong>
     Example:
    </strong>
   </p>
   <pre>
<strong>Input:</strong>
nums1 = [1,2,3,0,0,0], m = 3
nums2 = [2,5,6],       n = 3

<strong>Output:</strong>&nbsp;[1,2,2,3,5,6]
</pre>
  </div>
  <div>
   <h1 class="question_title">
    88. 合并两个有序数组
   </h1>
   <p>
    给定两个有序整数数组&nbsp;
    <em>
     nums1
    </em>
    和
    <em>
     nums2
    </em>
    ，将
    <em>
     nums2
    </em>
    合并到&nbsp;
    <em>
     nums1&nbsp;
    </em>
    中
    <em>
     ，
    </em>
    使得&nbsp;
    <em>
     num1
    </em>
    成为一个有序数组。
   </p>
   <p>
    <strong>
     说明:
    </strong>
   </p>
   <ul>
    <li>
     初始化&nbsp;
     <em>
      nums1
     </em>
     和
     <em>
      nums2
     </em>
     的元素数量分别为&nbsp;
     <em>
      m
     </em>
     和
     <em>
      n
     </em>
     。
    </li>
    <li>
     你可以假设&nbsp;
     <em>
      nums1&nbsp;
     </em>
     有足够的空间（空间大小大于或等于&nbsp;
     <em>
      m + n
     </em>
     ）来保存
     <em>
      nums2
     </em>
     中的元素。
    </li>
   </ul>
   <p>
    <strong>
     示例:
    </strong>
   </p>
   <pre><strong>输入:</strong>
nums1 = [1,2,3,0,0,0], m = 3
nums2 = [2,5,6],       n = 3

<strong>输出:</strong>&nbsp;[1,2,2,3,5,6]</pre>
  </div>
 </body>
</html>